<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
 
	<head>
		
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title><?php echo $title ?></title>
        <?php foreach ($styles as $file => $type) echo HTML::style($file, array('media' => $type)), PHP_EOL ?>
		<!-- Internet Explorer Fixes Stylesheet -->
		
		<!--[if lte IE 7]>
			<link rel="stylesheet" href="<?php echo Kohana::$base_url; ?>resources/css/ie.css" type="text/css" media="screen" />
		<![endif]-->
		
		<!--                       Javascripts                       -->
        <?php foreach ($scripts as $file) echo HTML::script($file), PHP_EOL ?>
		
		<script type="text/javascript">
		
			/* ***** Usage *****
			$.noConflict();
			
			jQuery(document).ready(function($) {
				// Code that uses jQuery's $ can follow here.
			});
				// Code that uses other library's $ can follow here.
			*/
		
		</script>
		
	</head>
  
	<body>
		
		<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->
			
			<h1 id="sidebar-title"><a href="#">Simpla Admin</a></h1>
		  
			<!-- Logo (221px wide) -->
			<a href="<?php echo Kohana::$base_url; ?>"><img id="logo" src="/lisuraadm/resources/images/logo.png" alt="Simpla Admin logo" /></a>
		  
			<!-- Sidebar Profile links -->
			<div id="profile-links">
				Hello, 
				<a href="#" title="Edit your profile"><?php echo Kohana::$config->load('app.name'); ?></a>, 
				Você tem <a href="#messages" rel="modal" title="3 Messages">3 Messagens</a><br />
				 - <?php echo Request::current()->controller()."/".Request::current()->action(); ?> -
				<br />
				<a href="#" title="View the Site">Veja o Site</a> | <a href="#" title="Sign Out">Sair</a>
			</div>        
			
			<?php 
				
				$className = "current";
				$classNameItem = "class=\"current\"";
			
				$home = "";
				
				$condominios = "";
				$condCreate = "";
				$condList = "";
				
				$assVirtual = "";

				if( Request::current()->controller() == "welcome" && Request::current()->action() == "index" ){
					$home = $className;
				}else if( Request::current()->controller() == "condominio" ){
					$condominios = $className;
					if( Request::current()->action() == "create" )
						$condCreate = $classNameItem;
					else 
						$condList = $classNameItem;
				}
			
			?>
				
			<ul id="main-nav">  <!-- Accordion Menu -->
			
				<li>
					<a href="<?php echo Kohana::$base_url; ?>" class="nav-top-item no-submenu <?php echo $home; ?>"> <!-- Add the class "no-submenu" to menu items with no sub menu -->
						Home
					</a>       
				</li>
				
				<li> 
					<a href="#" class="nav-top-item <?php echo $condominios; ?>"> <!-- Add the class "current" to current menu item -->
						Condomínios
					</a>
					<ul>
						<li><a <?php echo $condCreate; ?> href="<?php echo Kohana::$base_url; ?>condominio/create">Cadastrar novo Condomínio</a></li>
						<li><a <?php echo $condList; ?> href="<?php echo Kohana::$base_url; ?>condominio/list">Gerenciar Condomínios</a></li> <!-- Add class "current" to sub menu items also -->
					</ul>
				</li>
				
				<li>
					<a href="#" class="nav-top-item">
						Assembléia Virtual
					</a>
					<ul>
						<li><a href="<?php echo Kohana::$base_url; ?>">Criar nova Assembléia</a></li>
						<li><a href="<?php echo Kohana::$base_url; ?>">Gerenciar Assembléias</a></li>
					</ul>
				</li>
				
			</ul> <!-- End #main-nav -->
			
			<div id="messages" style="display: none"> <!-- Messages are shown when a link with these attributes are clicked: href="#messages" rel="modal"  -->
				
				<h3>3 Messages</h3>
			 
				<p>
					<strong>17th May 2009</strong> by Admin<br />
					Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
			 
				<p>
					<strong>2nd May 2009</strong> by Jane Doe<br />
					Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
			 
				<p>
					<strong>25th April 2009</strong> by Admin<br />
					Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue.
					<small><a href="#" class="remove-link" title="Remove message">Remove</a></small>
				</p>
				
				<form action="" method="post">
					
					<h4>New Message</h4>
					
					<fieldset>
						<textarea class="textarea" name="textfield" cols="79" rows="5"></textarea>
					</fieldset>
					
					<fieldset>
					
						<select name="dropdown" class="small-input">
							<option value="option1">Send to...</option>
							<option value="option2">Everyone</option>
							<option value="option3">Admin</option>
							<option value="option4">Jane Doe</option>
						</select>
						
						<input class="button" type="submit" value="Send" />
						
					</fieldset>
					
				</form>
				
			</div> <!-- End #messages -->
			
		</div></div> <!-- End #sidebar -->
		
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			<noscript> <!-- Show a notification if the user has disabled javascript -->
				<div class="notification error png_bg">
					<div>
						Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
					</div>
				</div>
			</noscript>
			
			<!-- Page Head -->
			
			<div class="clear"></div> <!-- End .clear -->
			
        		<?php echo $content ?>
        		
			<div id="footer">
				<small>
						&#169; Copyright <?=date("Y")?> Lisura Since 2011
				</small>
			</div><!-- End #footer -->
			
		</div> <!-- End #main-content -->
		
	</div></body>
  
</html>
